**********************************************************************************************
Incentive Effects of Recall Elections: Evidence from Criminal Sentencing in California Courts
				Replication ReadMe File
**********************************************************************************************


This folder includes all the datasets and scripts necessary to replicate each figure and table in the manuscript and supporting information (SI).

---------------------------------------------------------------Main Folder----------------------------------------------------------------------------------
Scripts
-- GordonYntiso_JOP_replication.do: 	Implements main and SI analyses. The script takes approximately 24 hours to run (Intel(R) Core(TM) i5-4590S CPU 
					processor with 16.0 GB RAM); an additional 48 hours of runtime for the placebo analysis in section "3a(2). 
					With covariates."
-- Figure A.1.R				Generates Appendix Figure A.1

Data files
-- recall_data_main.dta: 		Primary case-level sentencing data from California scraped from publicly accessible court websites.
-- recall_data_washington.tab: 		Case-level sentencing data from Washington (Appendix Figure B.3). Records can be otained from the 
					Washington Department of Corrections Public Records Office. 
-- recall_data_appellate.tab: 		Case-level Appellate data from California (Appendix Table C.2) scraped from the Judicial Branch of
					California's Appellate Court Website.

---------------------------------------------------------------\Source Data\CA Trial Courts\---------------------------------------------------------------
Scripts
-- code_ca_analysis.do			Script to collect sentencing records, and generate outcomes

Data files
-- california_dispositions.csv: 	Sentencing records from six counties sourced from county court websites.
-- arrest_records.csv			Arrest records from six counties.
---------------------------------------------------------------\Source Data\Additional Data\CA Appellate Courts\-------------------------------------------
Scripts
-- read_appeals.R			Script to combine appellate records and generate outcomes

Data files
-- case_files.csv, party_files.csv,	California appellate records split into four datasets based on variable type
   disp_files.csv, sent_file.csv

---------------------------------------------------------------\Source Data\Additional Data\News Coverage\--------------------------------------------------

Data files
-- google trends.csv			Results from google trends search for the term "Judge Persky" between 2016-2018
-- nexus_data.RDA			2,293 news articles collected from a Lexis-Nexis search for the term "Judge Persky"

---------------------------------------------------------------\Source Data\Additional Data\WA Trial Courts\------------------------------------------------
Scripts
-- 1_WA_read_pdf. R			Read PDF provided by Washington State Department of Corrections and generate charge level dataset
-- 2_WA_convert_dta.R			Clean columns in charge level dataset
-- wa_coding_revised.do			Generate outcomes, add sentencing guidelines, aggregrate to case level dataset

Data files
-- merged_guidelines.dta		Statutory maximum penalties by charge in Washington
